﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Supplier_SupplierMasterPage : BaseMasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            if (UserAccess.IsCurrentUser(Enums.UserTypes.Admin))
            {
                tblAdminMenu.Visible = true;
                tblSupplierMenu.Visible = false;
            }
            else
            {
                tblAdminMenu.Visible = false;
                tblSupplierMenu.Visible = true;
            }
        }
        
    }
    protected void lnkbtnLogOut_Click(object sender, EventArgs e)
    {
        UserAccess.ClearUserSession();
        Response.Redirect("/Logout.aspx");
    }
}
